#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int main(){
    long n=20,x,y;
    long i;
    FILE *fp=fopen("ROOMS.INP","w");
    fprintf(fp,"%ld",n);
    for(i=1;i<=n;i++){
        x=(long)(rand())%1000;
        y=(long)(rand())%1000;
        fprintf(fp,"\n%ld %ld",x,x+y);
    }
    fclose(fp);
    return 0l;
}
